sortByColumn Method |
This method sorts the cells of a column in the grid in an ascending or descending order.
Syntax
tableID.sortByColumn(nIndex , bAsc)
Parameters
Parameter |
Description |
---|---|
nIndex |
Required. Integer that specifies the index of the column to be sorted. |
bAsc |
Optional. Boolean that specifies the order of sorting.
|
Return Value
No return value.
Remarks
The default value forbAscis true and the sorting will be done in ascending order for the first time. For successive calls, column sorting toggles between ascending and descending orders.